< previous page page_680 next page >

Page 680
The information in Table 18.3 deserves some additional comment. Remember that the primary work of dataset management from the workstation point of view is gaining access to the actual rows of data stored in the remote system. The most efficient method for gaining access is to receive a set of row pointers from the RDBMS, not to actually receive the complete rows of data. In this way, the RDBMS can allow multiple users to have access to the same set of records without having to deal with major synchronization work if more than one user attempts to update the same row of data.
For this reason, RDC/RDOs support the use of rdOpenKeyset datasets. These are sets of data that contain not just data rows, but also key-set pointers to other rows in the requested dataset. rdOpenKeysets are the remote data-access versions of Microsoft Jet Dynaset-type datasets.
The rdOpenDynamic datasets do not support keys, but they do act as dynamically changing sets of data. These dynamic datasets reflect newly added or deleted records just as rdOpenKeyset datasets, but they do not support the use of bookmarks. This is because the rdOpenDynamic datasets are kept dynamic through the use of recurring refreshes of the data membership from the remote data source. Although this method is accurate, it is hardly efficient. If you have large sets of data, using the rdOpenDynamic option can result in decreased throughput, because all data members are shipped to the client each time the set is refreshed.
It also is important to note that rdOpenStatic datasets are updatable. Even though their membership is kept static (there is no constant refresh from the remote data source), it still is possible to update the records in the set. These datasets act much like an updatable version of the Microsoft Jet Snapshot dataset.
Lock Types
The final concept that deserves special attention when dealing with remote data access is the lock type used to manage dataset updates. With Microsoft Jet data access, you have two options: pessimistic (lock at start of edit) and optimistic (lock at start of update). RDC/RDOs offer a few additional variations to these two basic options. Table 18.4 shows the lock-type options with RDC/RDOs.
Table 18.4. Dataset lock-type options with RDC/RDOs.
Lock-Type OptionInteger ValueDescription
rdConcurReadOnly0Provides no row-level locking. Forces the dataset to act as a read-only set. You can use this option to perform action queries, though. This is the default option.

(table continued on next page)

 
< previous page page_680 next page >

If you like this book, buy it!